package com.ruoyi.service.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.service.project.entity.ProjectSettleEntity;
import com.ruoyi.service.project.query.SettleQuery;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目结算单 服务类
 * </p>
 *
 * @author Zane
 * @since 2025-10-26
 */
public interface ProjectSettleService extends IService<ProjectSettleEntity> {

  /**
   * 获取需要结算的列表
   */
  List<ProjectSettleEntity> getNeedSettleList();

  /**
   * 平台佣金
   */
  BigDecimal getCommission();

  Map<String,ProjectSettleEntity> mapByProjectIds(List<String> projectIds);

  List<ProjectSettleEntity> demanderListSettle(SettleQuery settleQuery, Long userId);

  List<ProjectSettleEntity> platformListSettle(SettleQuery settleQuery);
}
